Optimal. Leaf size=85 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {a-b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f (a-b)^{3/2}}-\frac {b \tan (e+f x)}{a f (a-b) \sqrt {a+b \tan ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3661, 382, 377, 203} \[ \frac {\tan ^{-1}\left (\frac {\sqrt {a-b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f (a-b)^{3/2}}-\frac {b \tan (e+f x)}{a f (a-b) \sqrt {a+b \tan ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 377
Rule 382
Rule 3661
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b \tan ^2(e+f x)\right )^{3/2}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \left (a+b x^2\right )^{3/2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {b \tan (e+f x)}{a (a-b) f \sqrt {a+b \tan ^2(e+f x)}}+\frac {\operatorname {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \sqrt {a+b x^2}} \, dx,x,\tan (e+f x)\right )}{(a-b) f}\\ &=-\frac {b \tan (e+f x)}{a (a-b) f \sqrt {a+b \tan ^2(e+f x)}}+\frac {\operatorname {Subst}\left (\int \frac {1}{1-(-a+b) x^2} \, dx,x,\frac {\tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{(a-b) f}\\ &=\frac {\tan ^{-1}\left (\frac {\sqrt {a-b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{(a-b)^{3/2} f}-\frac {b \tan (e+f x)}{a (a-b) f \sqrt {a+b \tan ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 7.46, size = 214, normalized size = 2.52 \[ \frac {4 \sin (e+f x) \cos ^3(e+f x) \sqrt {a+b \tan ^2(e+f x)} \left (\frac {15 \left (3 a+2 b \tan ^2(e+f x)\right ) \left (a \sqrt {\frac {(a-b) \sin ^2(2 (e+f x)) \left (a+b \tan ^2(e+f x)\right )}{a^2}}-2 \sin ^{-1}\left (\sqrt {\frac {(a-b) \sin ^2(e+f x)}{a}}\right ) \left (a \cos ^2(e+f x)+b \sin ^2(e+f x)\right )\right )}{\left (\frac {(a-b) \sin ^2(2 (e+f x)) \left (a+b \tan ^2(e+f x)\right )}{a^2}\right )^{3/2}}+a (a-b) \tan ^2(e+f x) \, _2F_1\left (2,2;\frac {7}{2};\frac {(a-b) \sin ^2(e+f x)}{a}\right )\right )}{15 a^4 f} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 310, normalized size = 3.65 \[ \left [\frac {{\left (a b \tan \left (f x + e\right )^{2} + a^{2}\right )} \sqrt {-a + b} \log \left (-\frac {{\left (a - 2 \, b\right )} \tan \left (f x + e\right )^{2} + 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a + b} \tan \left (f x + e\right ) - a}{\tan \left (f x + e\right )^{2} + 1}\right ) - 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} {\left (a b - b^{2}\right )} \tan \left (f x + e\right )}{2 \, {\left ({\left (a^{3} b - 2 \, a^{2} b^{2} + a b^{3}\right )} f \tan \left (f x + e\right )^{2} + {\left (a^{4} - 2 \, a^{3} b + a^{2} b^{2}\right )} f\right )}}, \frac {{\left (a b \tan \left (f x + e\right )^{2} + a^{2}\right )} \sqrt {a - b} \arctan \left (-\frac {\sqrt {b \tan \left (f x + e\right )^{2} + a}}{\sqrt {a - b} \tan \left (f x + e\right )}\right ) - \sqrt {b \tan \left (f x + e\right )^{2} + a} {\left (a b - b^{2}\right )} \tan \left (f x + e\right )}{{\left (a^{3} b - 2 \, a^{2} b^{2} + a b^{3}\right )} f \tan \left (f x + e\right )^{2} + {\left (a^{4} - 2 \, a^{3} b + a^{2} b^{2}\right )} f}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.29, size = 104, normalized size = 1.22 \[ -\frac {b \tan \left (f x +e \right )}{a \left (a -b \right ) f \sqrt {a +b \left (\tan ^{2}\left (f x +e \right )\right )}}+\frac {\sqrt {b^{4} \left (a -b \right )}\, \arctan \left (\frac {\left (a -b \right ) b^{2} \tan \left (f x +e \right )}{\sqrt {b^{4} \left (a -b \right )}\, \sqrt {a +b \left (\tan ^{2}\left (f x +e \right )\right )}}\right )}{f \left (a -b \right )^{2} b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{{\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________